﻿import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import GameTableModel 1.0
import HDataQuery 1.0

Window {
    id: root
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")
    color: blendent[0]
    property var blendent: ["#041a48", "#113c78"]

    HDataQuery {
        id: query
    }
    GameTableModel {
        id: modelH
    }
    /*
    TabBar {
        id: bar
        width: parent.width
        TabButton {
            text: qsTr("Home")
        }
        TabButton {
            text: qsTr("HLINES")
        }
        TabButton {
            text: qsTr("HVBAR")
        }
        TabButton {
            text: qsTr("HINVERTER")
        }
        TabButton {
            text: qsTr("HNEWDEMO")
        }
    }

    StackLayout {
        anchors.rightMargin: 0
        anchors.bottomMargin: 0
        anchors.leftMargin: 0
        anchors.topMargin: 46
        anchors.fill: parent
        currentIndex: bar.currentIndex
        HTableView {
        }
        HLineS {
        }
        HVBar {
        }
        HInverterPie{
        }
        HNewDemo {
        }
    }
    */

    Grid {
        id: gridLayout
        rows: 2
        columns: 3
        anchors.fill: parent
        columnSpacing: 2
        rowSpacing: 2

        Rectangle {
            width: gridLayout.width/gridLayout.columns
            height: gridLayout.height/gridLayout.rows
            color: root.blendent[0]
            HInverterPie {
                anchors.fill: parent
                backgroundColor: root.blendent[1]
            }
        }
        Rectangle {
            width: gridLayout.width/gridLayout.columns
            height: gridLayout.height/gridLayout.rows
            color: root.blendent[0]
            HVBar {
                anchors.fill: parent
                backgroundColor: root.blendent[1]
            }
        }
        Rectangle {
            width: gridLayout.width/gridLayout.columns
            height: gridLayout.height/gridLayout.rows
            color: root.blendent[0]
            HLineS {
                anchors.fill: parent
                backgroundColor: root.blendent[1]
            }
        }
        Rectangle {
            width: gridLayout.width/gridLayout.columns
            height: gridLayout.height/gridLayout.rows
            color: root.blendent[0]
            HTableView {
                anchors.fill: parent
            }
        }
        Rectangle {
            width: gridLayout.width/gridLayout.columns
            height: gridLayout.height/gridLayout.rows
            color: root.blendent[0]
            HPerBar {
                anchors.fill: parent
                backgroundColor: root.blendent[1]
            }
        }
        Rectangle {
            width: gridLayout.width/gridLayout.columns
            height: gridLayout.height/gridLayout.rows
            color: root.blendent[0]
            HScatter {
                anchors.fill: parent
                backgroundColor: root.blendent[1]
            }
        }
    }
}


/*##^## Designer {
    D{i:1;anchors_height:136;anchors_width:152}D{i:3;anchors_width:640;anchors_x:38;anchors_y:98}
D{i:2;anchors_height:100;anchors_width:100;anchors_x:11;anchors_y:247}
}
 ##^##*/
